package com.cskaoyan.factory;

import com.cskaoyan.bean.Car;

/**
 * @author stone
 * @date 2022/12/19 16:20
 */
public class InstanceFactory {

    // 返回值为Car的非静态方法
    public Car getCar() {
        Car car = new Car();
        car.setFrom("实例工厂");
        return car;
    }
}
